<?php

	//require_once ('orm/bootstrap.php');
	
	//Doctrine_Core :: generateModelsFromDb('models', array (	'doctrine'), array (	'generateTableClasses' => true));
	//Doctrine_Core :: loadModels('models');
	
	/*$user = new Adherent();
	$user['ad_num'] = "14";
	$user['ad_nom'] = $_POST['nom'];
	$user['ad_prenom'] = $_POST['prenom'];
	$user['ad_num_rue'] =  $_POST['numRue'];
	$user['ad_lib_rue'] =  $_POST['rue'] ;
	$user['ad_code_postal'] =  $_POST['cp'];
	$user['ad_ville'] =  $_POST['ville'];
	$user['ad_dte_adhesion'] = "2012-03-28";
	$user['ad_est_actif'] = "0";
	$user['ad_cours_semaine'] = "0";
	$user['ad_level'] = "1";
	$user['ad_mdp'] = md5($_POST['password_1']);
	$user['ad_mail'] = $_POST['mail'];
	$user['ad_tel'] = $_POST['tel'];
	$user->save();*/
	
//	$array = Doctrine_Core :: getTable ( 'Adherent' )->findBy('ad_nom', 'Richer', null);
	
//	var_dump($array);
	

	header("location:./controller/user_controller.php?action=index");
?>